package com.xiaoxing.zhinenghuacangku_linyi.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_linyi.mvp.contract.LinYi_LiKuRuKuContract;
import com.xiaoxing.zhinenghuacangku_linyi.mvp.model.LinYi_LiKuRuKuModel;


@Module
public class LinYi_LiKuRuKuModule {
    private LinYi_LiKuRuKuContract.View view;

    /**
     * 构建LinYi_LiKuRuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LinYi_LiKuRuKuModule(LinYi_LiKuRuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LinYi_LiKuRuKuContract.View provideLinYi_LiKuRuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LinYi_LiKuRuKuContract.Model provideLinYi_LiKuRuKuModel(LinYi_LiKuRuKuModel model) {
        return model;
    }
}